package com.ibo.htlivecamera.socket;


public class SimpleEvent {
    public static final int CONNECTED = 1;
    public static final int DISCONNECTED = 2;
    public static final int CAMERA_ZOOM = 4;
    public static final int STOP_PUSH = 5;
    public static final int START_PUSH = 6;
    public static final int RESTART_SELF = 7;
    public static final int SET_NAME = 8;
    public static final int VOLUME = 9;
    public static final int SET_RATE = 10;
    public static final int CAMERA_ROTATE = 11;
    public static final int INFO = 12;
    public static final int START_PLAY = 13;
    public static final int STOP_PLAY = 14;
    public static final int SHOW_ACTIVITY = 15;
    public static final int STOP_SELF = 16;
    public static final int UPDATE = 17;
    public static final int VERSION = 18;
    public static final int RECAPTURE_CAMERA = 19;

    public int command;
    public String param;
    public boolean consume;

    public SimpleEvent(int command) {
        this.command = command;
        this.param = "";
    }

    public SimpleEvent(int command, String param) {
        this.command = command;
        this.param = param;
    }

    public int getCommand() {
        return command;
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param;
    }

    public boolean isConsume() {
        return consume;
    }

    public void setConsume(boolean consume) {
        this.consume = consume;
    }
}
